package com.example.parsedemo;

import com.parse.Parse;
import com.parse.ParseObject;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        // subcribe to Parse Push Notyfication
        Parse.initialize(this, "tCf5X9wQKGjrXn0W5QmanT3ZZdsprZ0MkltivuUx", "HIYNK2GinKVpnSvPdsfv5NmF5jLdjqRdoj7pQwyW");
        
        ParseObject data = new ParseObject("Logcat");
        data.put("Lover", "Nguyen Thu Trang");
        data.saveInBackground();
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }

    
}
